import Vue from 'vue'
import Vuex from 'vuex'
import storage from "@/utils/storage";
import {asyncRouterMap, constantRouterMap} from '@/utils/router';

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        active: '',//菜单选中,主要针对F5刷新后菜单的默认选中
        mainHeight: document.documentElement.clientHeight-190,//正文内容高度
        loading: false,//加载效果
        upload: '/manage/upload/',//上传图片地址
        routers: [],//权限筛选后的路由
        chunqiu_active: '',
        appletcount_active: '',
        yuanyang_active: '',
        xiaoxigua_active: '',
        xique_active: '',
        fuxing_active: '',
        chuntian_active: '',
        xiatian_active: '',
        daduizhang_active: '',
        xiaoyingtao_active: '',
        qiaoyiqiao_active: '',
        laotongxue_active: '',
        haokan_active: '',
        kubo_active: '',
        xuanhuan_active: '',
        wangyuanjing_active: '',
        xingkong_active: '',
        zuanshi_active: '',
        wangzhe_active: '',
        huijiakan_active: '',
        waipai_active: '',
        qiaofeng_active: '',
        shiwu_active: '',
        yueliang_active: '',
        mingyue_active: '',
        yangjian_active: '',
        zhaoyun_active: '',
        aikan_active: '',
        xiangkan_active: '',
        doubo_active: '',
        piaoliang_active: '',
        kanduoduo_active: '',
        huishou_active: '',
        nanguaqiu_active: '',
        zhujiujie_active: '',
        kankan_active: '',
        yeshi_active: '',
        bobo_active: '',
        laiyikan_active: '',
        wanlikan_active: '',
        qianliqiao_active: '',
        youbo_active: '',
        taiyang_active: '',
        dahai_active: '',
        qifei_active: '',
        xiongda_active: '',
        kaixinguo_active: '',
        dongfanghong_active: '',
        suiyue_active: '',
        binggege_active: '',
        daxiong_active: '',
        along_active: '',
        zhazhahui_active: '',
        yonghe_active: '',
        remen_active: '',
        redian_active: '',
        diankai_active: '',
        daini_active: '',
        fanhouredian_active: '',
        hongmeigui_active: '',
        xiaopingguo_active: '',
        meimei_active: '',
        xianggu_active: '',
        apang_active: '',
        meili_active: '',
        ganjue_active: '',
        huanbao_active: '',
        youji_active: '',
        lanhua_active: '',
        hehua_active: '',
        xiuli_active: '',
        honghua_active: '',
        kanhua_active: '',
        richu_active: '',
        laikansa_active: '',
        tianyan_active: '',
        aishenghuo_active: '',
        zhima_active: '',
        geteshi_active: '',
        youcaihua_active: '',
        yueji_active: '',
        meiguihua_active: '',
        shiguang_active: '',
        cunzhuang_active: '',
        xiesheng_active: '',
        qiyue_active: '',
        haitunyin_active: '',
        bingbing_active: '',
    },
    getters: {
        active:(state)=> {return state.active;},
        chunqiu_active:(state)=> {return state.chunqiu_active;},
        appletcount_active:(state)=> {return state.appletcount_active;},
        yuanyang_active:(state)=> {return state.yuanyang_active;},
        xiaoxigua_active:(state)=> {return state.xiaoxigua_active;},
        daduizhang_active:(state)=> {return state.daduizhang_active;},
        xique_active:(state)=> {return state.xique_active;},
        fuxing_active:(state)=> {return state.fuxing_active;},
        chuntian_active:(state)=> {return state.chuntian_active;},
        xiatian_active:(state)=> {return state.xiatian_active;},
        xiaoyingtao_active:(state)=> {return state.xiaoyingtao_active;},
        qiaoyiqiao_active:(state)=> {return state.qiaoyiqiao_active;},
        laotongxue_active:(state)=> {return state.laotongxue_active;},
        haokan_active:(state)=> {return state.haokan_active;},
        kubo_active:(state)=> {return state.kubo_active;},
        xuanhuan_active:(state)=> {return state.xuanhuan_active;},
        wangyuanjing_active:(state)=> {return state.wangyuanjing_active;},
        xingkong_active:(state)=> {return state.xingkong_active;},
        zuanshi_active:(state)=> {return state.zuanshi_active;},
        wangzhe_active:(state)=> {return state.wangzhe_active;},
        huijiakan_active:(state)=> {return state.huijiakan_active;},
        waipai_active:(state)=> {return state.waipai_active;},
        qiaofeng_active:(state)=> {return state.qiaofeng_active;},
        shiwu_active:(state)=> {return state.shiwu_active;},
        yueliang_active:(state)=> {return state.yueliang_active;},
        mingyue_active:(state)=> {return state.mingyue_active;},
        yangjian_active:(state)=> {return state.yangjian_active;},
        zhaoyun_active:(state)=> {return state.zhaoyun_active;},
        aikan_active:(state)=> {return state.aikan_active;},
        xiangkan_active:(state)=> {return state.xiangkan_active;},
        doubo_active:(state)=> {return state.doubo_active;},
        piaoliang_active:(state)=> {return state.piaoliang_active;},
        kanduoduo_active:(state)=> {return state.kanduoduo_active;},
        huishou_active:(state)=> {return state.huishou_active;},
        nanguaqiu_active:(state)=> {return state.nanguaqiu_active;},
        zhujiujie_active:(state)=> {return state.zhujiujie_active;},
        kankan_active:(state)=> {return state.kankan_active;},
        yeshi_active:(state)=> {return state.yeshi_active;},
        bobo_active:(state)=> {return state.bobo_active;},
        laiyikan_active:(state)=> {return state.laiyikan_active;},
        wanlikan_active:(state)=> {return state.wanlikan_active;},
        qianliqiao_active:(state)=> {return state.qianliqiao_active;},
        youbo_active:(state)=> {return state.youbo_active;},
        haitunyin_active:(state)=> {return state.haitunyin_active;},
        bingbing_active:(state)=> {return state.bingbing_active;},
        taiyang_active:(state)=> {return state.taiyang_active;},
        dahai_active:(state)=> {return state.dahai_active;},
        qifei_active:(state)=> {return state.qifei_active;},
        xiongda_active:(state)=> {return state.xiongda_active;},
        kaixinguo_active:(state)=> {return state.kaixinguo_active;},
        dongfanghong_active:(state)=> {return state.dongfanghong_active;},
        suiyue_active:(state)=> {return state.suiyue_active;},
        binggege_active:(state)=> {return state.binggege_active;},
        daxiong_active:(state)=> {return state.daxiong_active;},
        along_active:(state)=> {return state.along_active;},
        zhazhahui_active:(state)=> {return state.zhazhahui_active;},
        yonghe_active:(state)=> {return state.yonghe_active;},
        remen_active:(state)=> {return state.remen_active;},
        redian_active:(state)=> {return state.redian_active;},
        diankai_active:(state)=> {return state.diankai_active;},
        daini_active:(state)=> {return state.daini_active;},
        fanhouredian_active:(state)=> {return state.fanhouredian_active;},
        hongmeigui_active:(state)=> {return state.hongmeigui_active;},
        xiaopingguo_active:(state)=> {return state.xiaopingguo_active;},
        meimei_active:(state)=> {return state.meimei_active;},
        xianggu_active:(state)=> {return state.xianggu_active;},
        apang_active:(state)=> {return state.apang_active;},
        meili_active:(state)=> {return state.meili_active;},
        ganjue_active:(state)=> {return state.ganjue_active;},
        huanbao_active:(state)=> {return state.huanbao_active;},
        youji_active:(state)=> {return state.youji_active;},
        lanhua_active:(state)=> {return state.lanhua_active;},
        hehua_active:(state)=> {return state.hehua_active;},
        xiuli_active:(state)=> {return state.xiuli_active;},
        honghua_active:(state)=> {return state.honghua_active;},
        kanhua_active:(state)=> {return state.kanhua_active;},
        richu_active:(state)=> {return state.richu_active;},
        laikansa_active:(state)=> {return state.laikansa_active;},
        tianyan_active:(state)=> {return state.tianyan_active;},
        aishenghuo_active:(state)=> {return state.aishenghuo_active;},
        zhima_active:(state)=> {return state.zhima_active;},
        geteshi_active:(state)=> {return state.geteshi_active;},
        youcaihua_active:(state)=> {return state.youcaihua_active;},
        yueji_active:(state)=> {return state.yueji_active;},
        meiguihua_active:(state)=> {return state.meiguihua_active;},
        shiguang_active:(state)=> {return state.shiguang_active;},
        cunzhuang_active:(state)=> {return state.cunzhuang_active;},
        xiesheng_active:(state)=> {return state.xiesheng_active;},
        qiyue_active:(state)=> {return state.qiyue_active;},
        loading:(state)=> {return state.loading;},
        upload:(state)=> {return state.upload;},
        routers:(state)=> {return state.routers;},
        mainHeight:(state)=> {return state.mainHeight;},

    },
    mutations: {
        SET_ACTIVE(state,param){state.active = param;},
        SET_CHUNQIU_ACTIVE(state,param){state.chunqiu_active = param;},
        SET_APPLETCOUNT_ACTIVE(state,param){state.appletcount_active = param;},
        SET_YUANYANG_ACTIVE(state,param){state.yuanyang_active = param;},
        SET_XIAOXIGUA_ACTIVE(state,param){state.xiaoxigua_active = param;},
        SET_DADUIZHANG_ACTIVE(state,param){state.daduizhang_active = param;},
        SET_XIQUE_ACTIVE(state,param){state.xique_active = param;},
        SET_FUXING_ACTIVE(state,param){state.fuxing_active = param;},
        SET_CHUNTIAN_ACTIVE(state,param){state.chuntian_active = param;},
        SET_XIATIAN_ACTIVE(state,param){state.xiatian_active = param;},
        SET_XIAOYINGTAO_ACTIVE(state,param){state.xiaoyingtao_active = param;},
        SET_QIAOYIQIAO_ACTIVE(state,param){state.qiaoyiqiao_active = param;},
        SET_LAOTONGXUE_ACTIVE(state,param){state.laotongxue_active = param;},
        SET_HAOKAN_ACTIVE(state,param){state.haokan_active = param;},
        SET_KUBO_ACTIVE(state,param){state.kubo_active = param;},
        SET_XUANHUAN_ACTIVE(state,param){state.xuanhuan_active = param;},
        SET_WANGYUANJING_ACTIVE(state,param){state.wangyuanjing_active = param;},
        SET_XINGKONG_ACTIVE(state,param){state.xingkong_active = param;},
        SET_ZUANSHI_ACTIVE(state,param){state.zuanshi_active = param;},
        SET_WANGZHE_ACTIVE(state,param){state.wangzhe_active = param;},
        SET_HUIJIAKAN_ACTIVE(state,param){state.huijiakan_active = param;},
        SET_WAIPAI_ACTIVE(state,param){state.waipai_active = param;},
        SET_QIAOFENG_ACTIVE(state,param){state.qiaofeng_active = param;},
        SET_SHIWU_ACTIVE(state,param){state.shiwu_active = param;},
        SET_YUELIANG_ACTIVE(state,param){state.yueliang_active = param;},
        SET_MINGYUE_ACTIVE(state,param){state.mingyue_active = param;},
        SET_YANGJIAN_ACTIVE(state,param){state.yangjian_active = param;},
        SET_ZHAOYUN_ACTIVE(state,param){state.zhaoyun_active = param;},
        SET_AIKAN_ACTIVE(state,param){state.aikan_active = param;},
        SET_XIANGKAN_ACTIVE(state,param){state.xiangkan_active = param;},
        SET_DOUBO_ACTIVE(state,param){state.doubo_active = param;},
        SET_PIAOLIANG_ACTIVE(state,param){state.piaoliang_active = param;},
        SET_KANDUODUO_ACTIVE(state,param){state.kanduoduo_active = param;},
        SET_HUISHOU_ACTIVE(state,param){state.huishou_active = param;},
        SET_NANGUAQIU_ACTIVE(state,param){state.nanguaqiu_active = param;},
        SET_ZHUJIUJIE_ACTIVE(state,param){state.zhujiujie_active = param;},
        SET_KANKAN_ACTIVE(state,param){state.kankan_active = param;},
        SET_YESHI_ACTIVE(state,param){state.yeshi_active = param;},
        SET_BOBO_ACTIVE(state,param){state.bobo_active = param;},
        SET_LAIYIKAN_ACTIVE(state,param){state.laiyikan_active = param;},
        SET_WANLIKAN_ACTIVE(state,param){state.wanlikan_active = param;},
        SET_QIANLIQIAO_ACTIVE(state,param){state.qianliqiao_active = param;},
        SET_YOUBO_ACTIVE(state,param){state.youbo_active = param;},
        SET_HAITUNYIN_ACTIVE(state,param){state.haitunyin_active = param;},
        SET_BINGBING_ACTIVE(state,param){state.bingbing_active = param;},
        SET_TAIYANG_ACTIVE(state,param){state.taiyang_active = param;},
        SET_DAHAI_ACTIVE(state,param){state.dahai_active = param;},
        SET_QIFEI_ACTIVE(state,param){state.qifei_active = param;},
        SET_XIONGDA_ACTIVE(state,param){state.xiongda_active = param;},
        SET_KAIXINGUO_ACTIVE(state,param){state.kaixinguo_active = param;},
        SET_DONGFANGHONG_ACTIVE(state,param){state.dongfanghong_active = param;},
        SET_SUIYUE_ACTIVE(state,param){state.suiyue_active = param;},
        SET_BINGGEGE_ACTIVE(state,param){state.binggege_active = param;},
        SET_DAXIONG_ACTIVE(state,param){state.daxiong_active = param;},
        SET_ALONG_ACTIVE(state,param){state.along_active = param;},
        SET_ZHAZHAHUI_ACTIVE(state,param){state.zhazhahui_active = param;},
        SET_YONGHE_ACTIVE(state,param){state.yonghe_active = param;},
        SET_REMEN_ACTIVE(state,param){state.remen_active = param;},
        SET_REDIAN_ACTIVE(state,param){state.redian_active = param;},
        SET_DIANKAI_ACTIVE(state,param){state.diankai_active = param;},
        SET_DAINI_ACTIVE(state,param){state.daini_active = param;},
        SET_FANHOUREDIAN_ACTIVE(state,param){state.fanhouredian_active = param;},
        SET_HONGMEIGUI_ACTIVE(state,param){state.hongmeigui_active = param;},
        SET_XIAOPINGGUO_ACTIVE(state,param){state.xiaopingguo_active = param;},
        SET_MEIMEI_ACTIVE(state,param){state.meimei_active = param;},
        SET_XIANGGU_ACTIVE(state,param){state.xianggu_active = param;},
        SET_APANG_ACTIVE(state,param){state.apang_active = param;},
        SET_MEILI_ACTIVE(state,param){state.meili_active = param;},
        SET_GANJUE_ACTIVE(state,param){state.ganjue_active = param;},
        SET_HUANBAO_ACTIVE(state,param){state.huanbao_active = param;},
        SET_YOUJI_ACTIVE(state,param){state.youji_active = param;},
        SET_LANHUA_ACTIVE(state,param){state.lanhua_active = param;},
        SET_HEHUA_ACTIVE(state,param){state.hehua_active = param;},
        SET_XIULI_ACTIVE(state,param){state.xiuli_active = param;},
        SET_HONGHUA_ACTIVE(state,param){state.honghua_active = param;},
        SET_KANHUA_ACTIVE(state,param){state.kanhua_active = param;},
        SET_RICHU_ACTIVE(state,param){state.richu_active = param;},
        SET_LAIKANSA_ACTIVE(state,param){state.laikansa_active = param;},
        SET_TIANYAN_ACTIVE(state,param){state.tianyan_active = param;},
        SET_AISHENGHUO_ACTIVE(state,param){state.aishenghuo_active = param;},
        SET_ZHIMA_ACTIVE(state,param){state.zhima_active = param;},
        SET_GETESHI_ACTIVE(state,param){state.geteshi_active = param;},
        SET_YOUCAIHUA_ACTIVE(state,param){state.youcaihua_active = param;},
        SET_YUEJI_ACTIVE(state,param){state.yueji_active = param;},
        SET_MEIGUIHUA_ACTIVE(state,param){state.meiguihua_active = param;},
        SET_SHIGUANG_ACTIVE(state,param){state.shiguang_active = param;},
        SET_CUNZHUANG_ACTIVE(state,param){state.cunzhuang_active = param;},
        SET_XIESHENG_ACTIVE(state,param){state.xiesheng_active = param;},
        SET_QIYUE_ACTIVE(state,param){state.qiyue_active = param;},
        SET_LOADING(state,param){state.loading = param;},
        SET_ROUTERS(state,param){state.routers = param;},
        USER_LOGIN(state,param){
            storage.set('token',param.token);
            storage.set('userinfo',param.userinfo);
        },
        SET_COUNT_APPLET_ACTIVE(state,param){
            storage.set('count_applet_active',param);
        },
        USER_LOGOUT(){
            storage.remove('token');
            storage.remove('count_applet_active');
            storage.remove('userinfo');
        },
    },
    actions: {
        setXiaoYingTaoActive({commit},param){commit('SET_XIAOYINGTAO_ACTIVE',param);},
        setQiaoYiQiaoActive({commit},param){commit('SET_QIAOYIQIAO_ACTIVE',param);},
        setLaoTongXueActive({commit},param){commit('SET_LAOTONGXUE_ACTIVE',param);},
        setHaoKanActive({commit},param){commit('SET_HAOKAN_ACTIVE',param);},
        setKuBoActive({commit},param){commit('SET_KUBO_ACTIVE',param);},
        setXuanHuanActive({commit},param){commit('SET_XUANHUAN_ACTIVE',param);},
        setWangYuanJingActive({commit},param){commit('SET_WANGYUANJING_ACTIVE',param);},
        setXingKongActive({commit},param){commit('SET_XINGKONG_ACTIVE',param);},
        setZuanShiActive({commit},param){commit('SET_ZUANSHI_ACTIVE',param);},
        setWangZheActive({commit},param){commit('SET_WANGZHE_ACTIVE',param);},
        setHuiJiaKanActive({commit},param){commit('SET_HUIJIAKAN_ACTIVE',param);},
        setWaiPaiActive({commit},param){commit('SET_WAIPAI_ACTIVE',param);},
        setQiaoFengActive({commit},param){commit('SET_QIAOFENG_ACTIVE',param);},
        setShiWuActive({commit},param){commit('SET_SHIWU_ACTIVE',param);},
        setYueLiangActive({commit},param){commit('SET_YUELIANG_ACTIVE',param);},
        setMingYueActive({commit},param){commit('SET_MINGYUE_ACTIVE',param);},
        setYangJianActive({commit},param){commit('SET_YANGJIAN_ACTIVE',param);},
        setZhaoYunActive({commit},param){commit('SET_ZHAOYUN_ACTIVE',param);},
        setAiKanActive({commit},param){commit('SET_AIKAN_ACTIVE',param);},
        setXiangKanActive({commit},param){commit('SET_XIANGKAN_ACTIVE',param);},
        setDouBoActive({commit},param){commit('SET_DOUBO_ACTIVE',param);},
        setPiaoLiangActive({commit},param){commit('SET_PIAOLIANG_ACTIVE',param);},
        setKanDuoDuoActive({commit},param){commit('SET_KANDUODUO_ACTIVE',param);},
        setHuiShouActive({commit},param){commit('SET_HUISHOU_ACTIVE',param);},
        setNanGuaQiuActive({commit},param){commit('SET_NANGUAQIU_ACTIVE',param);},
        setZhuJiuJieActive({commit},param){commit('SET_ZHUJIUJIE_ACTIVE',param);},
        setKanKanActive({commit},param){commit('SET_KANKAN_ACTIVE',param);},
        setYeShiActive({commit},param){commit('SET_YESHI_ACTIVE',param);},
        setBoBoActive({commit},param){commit('SET_BOBO_ACTIVE',param);},
        setLaiYiKanActive({commit},param){commit('SET_LAIYIKAN_ACTIVE',param);},
        setWanLiKanActive({commit},param){commit('SET_WANLIKAN_ACTIVE',param);},
        setQianLiQiaoActive({commit},param){commit('SET_QIANLIQIAO_ACTIVE',param);},
        setYouBoActive({commit},param){commit('SET_YOUBO_ACTIVE',param);},
        setHaiTunYinActive({commit},param){commit('SET_HAITUNYIN_ACTIVE',param);},
        setChunQiuActive({commit},param){commit('SET_CHUNQIU_ACTIVE',param);},
        setAppletCountActive({commit},param){commit('SET_APPLETCOUNT_ACTIVE',param);},
        setYuanYangActive({commit},param){commit('SET_YUANYANG_ACTIVE',param);},
        setXiaoXiGuaActive({commit},param){commit('SET_XIAOXIGUA_ACTIVE',param);},
        setXiQueActive({commit},param){commit('SET_XIQUE_ACTIVE',param);},
        setFuXingActive({commit},param){commit('SET_FUXING_ACTIVE',param);},
        setChunTianActive({commit},param){commit('SET_CHUNTIAN_ACTIVE',param);},
        setXiaTianActive({commit},param){commit('SET_XIATIAN_ACTIVE',param);},
        setDaDuiZhangActive({commit},param){commit('SET_DADUIZHANG_ACTIVE',param);},
        setTaiYangActive({commit},param){commit('SET_TAIYANG_ACTIVE',param);},
        setDaHaiActive({commit},param){commit('SET_DAHAI_ACTIVE',param);},
        setQiFeiActive({commit},param){commit('SET_QIFEI_ACTIVE',param);},
        setXiongDaActive({commit},param){commit('SET_XIONGDA_ACTIVE',param);},
        setKaiXinGuoActive({commit},param){commit('SET_KAIXINGUO_ACTIVE',param);},
        setDongFangHongActive({commit},param){commit('SET_DONGFANGHONG_ACTIVE',param);},
        setSuiYueActive({commit},param){commit('SET_SUIYUE_ACTIVE',param);},
        setBingGeGeActive({commit},param){commit('SET_BINGGEGE_ACTIVE',param);},
        setDaXiongActive({commit},param){commit('SET_DAXIONG_ACTIVE',param);},
        setALongActive({commit},param){commit('SET_ALONG_ACTIVE',param);},
        setZhaZhaHuiActive({commit},param){commit('SET_ZHAZHAHUI_ACTIVE',param);},
        setYongHeActive({commit},param){commit('SET_YONGHE_ACTIVE',param);},
        setReMenActive({commit},param){commit('SET_REMEN_ACTIVE',param);},
        setReDianActive({commit},param){commit('SET_REDIAN_ACTIVE',param);},
        setDianKaiActive({commit},param){commit('SET_DIANKAI_ACTIVE',param);},
        setDaiNiActive({commit},param){commit('SET_DAINI_ACTIVE',param);},
        setFanHouReDianActive({commit},param){commit('SET_FANHOUREDIAN_ACTIVE',param);},
        setHongMeiGuiActive({commit},param){commit('SET_HONGMEIGUI_ACTIVE',param);},
        setXiaoPingGuoActive({commit},param){commit('SET_XIAOPINGGUO_ACTIVE',param);},
        setMeiMeiActive({commit},param){commit('SET_MEIMEI_ACTIVE',param);},
        setXiangGuActive({commit},param){commit('SET_XIANGGU_ACTIVE',param);},
        setAPangActive({commit},param){commit('SET_APANG_ACTIVE',param);},
        setMeiLiActive({commit},param){commit('SET_MEILI_ACTIVE',param);},
        setGanJueActive({commit},param){commit('SET_GANJUE_ACTIVE',param);},
        setHuanBaoActive({commit},param){commit('SET_HUANBAO_ACTIVE',param);},
        setYouJiActive({commit},param){commit('SET_YOUJI_ACTIVE',param);},
        setLanHuaActive({commit},param){commit('SET_LANHUA_ACTIVE',param);},
        setHeHuaActive({commit},param){commit('SET_HEHUA_ACTIVE',param);},
        setXiuLiActive({commit},param){commit('SET_XIULI_ACTIVE',param);},
        setHongHuaActive({commit},param){commit('SET_HONGHUA_ACTIVE',param);},
        setKanHuaActive({commit},param){commit('SET_KANHUA_ACTIVE',param);},
        setRiChuActive({commit},param){commit('SET_RICHU_ACTIVE',param);},
        setLaiKanSaActive({commit},param){commit('SET_LAIKANSA_ACTIVE',param);},
        setTianYanActive({commit},param){commit('SET_TIANYAN_ACTIVE',param);},
        setAiShengHuoActive({commit},param){commit('SET_AISHENGHUO_ACTIVE',param);},
        setZhiMaActive({commit},param){commit('SET_ZHIMA_ACTIVE',param);},
        setGeTeShiActive({commit},param){commit('SET_GETESHI_ACTIVE',param);},
        setYouCaiHuaActive({commit},param){commit('SET_YOUCAIHUA_ACTIVE',param);},
        setYueJiActive({commit},param){commit('SET_YUEJI_ACTIVE',param);},
        setMeiGuiHuaActive({commit},param){commit('SET_MEIGUIHUA_ACTIVE',param);},
        setShiGuangActive({commit},param){commit('SET_SHIGUANG_ACTIVE',param);},
        setCunZhuangActive({commit},param){commit('SET_CUNZHUANG_ACTIVE',param);},
        setXieShengActive({commit},param){commit('SET_XIESHENG_ACTIVE',param);},
        setQiYueActive({commit},param){commit('SET_QIYUE_ACTIVE',param);},
        setBingBingActive({commit},param){commit('SET_BINGBING_ACTIVE',param);},
        setCountAppletActive({commit},param){
            return new Promise((resolve) => {
                commit('SET_COUNT_APPLET_ACTIVE',param);
                resolve();
            });
        },
        //开启加载效果
        setLoading({commit},param){commit('SET_LOADING',param);},
        //设置菜单选中
        setActive({commit},param){commit('SET_ACTIVE',param);},
        //登陆
        userLogin({commit},param){
            return new Promise((resolve) => {
                commit('USER_LOGIN',param);
                resolve();
            });
        },
        //退出登录
        userLogout({commit}){
            return new Promise((resolve) => {
                commit('USER_LOGOUT');
                resolve();
            });
        },
        generateRoutes({commit}){
            //全部执行完再返回
            return new Promise(resolve => {
                const accessedRouters = asyncRouterMap.filter(v => {
                    return true;
                });
                commit('SET_ROUTERS', accessedRouters);
                resolve();
            });
        },




    }
})
